import { createRouter, createWebHashHistory } from 'vue-router'

const router = createRouter({
    history: createWebHashHistory(),
    routes: [
        {
            path: '/',
            redirect: '/home'
        },
        {
            path: '/home',
            name: 'home',
            component: () => import('@renderer/views/home/home.vue'),
            meta: {
                title: '首页'
            }
        }
    ]
})
// router.beforeEach((to, from, next) => {
//     next()
// })
export default router
